package com.wy.w_ui.tab.top;


import android.graphics.Bitmap;

import androidx.fragment.app.Fragment;

public class WTabTopInfo<Color> {

    public enum TabType{
        BITMAP,TEXT
    }

    public Class<? extends Fragment> fragment;
    public String name;
    public Bitmap defaultBitmap;
    public Bitmap selectedBitmap;
    public Color defaultColor;
    public Color selectedColor;
    public TabType tabType;

    /**
     * 传递 bitmap
     * @param name
     * @param defaultBitmap
     * @param selectedBitmap
     */
    public WTabTopInfo(String name, Bitmap defaultBitmap, Bitmap selectedBitmap){
        this.name = name;
        this.defaultBitmap = defaultBitmap;
        this.selectedBitmap = selectedBitmap;
        this.tabType = TabType.BITMAP;
    }


    /**
     * 传递 iconFount
     * @param name
     * @param defaultColor
     * @param selectedColor

     */
    public WTabTopInfo(String name, Color defaultColor, Color selectedColor){
        this.name = name;
        this.defaultColor = defaultColor;
        this.selectedColor = selectedColor;
        this.tabType = TabType.TEXT;
    }

}
